#ifndef __CMD_H__
#define __CMD_H__
#include "gpio.h"
#include "pwm.h"

typedef struct{
	char *cmdStr;
	int stat;
	gpio_t *gpio;
	unsigned int pin;
	level_t level;
	void (*led_p)(gpio_t *gpio, 
			unsigned int pin, level_t level);
	void (*beep_p)(void);

}cmd_t;


cmd_t *find_cmd(char *uart_cmd_str);

#endif
